package com.zem.imos.Mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zem.imos.Entity.Doctor;
import com.zem.imos.Entity.Params.ParamsDoctor;
import com.zem.imos.Entity.Params.ParamsPatient;
import com.zem.imos.Entity.Patient;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


@Mapper
public interface DoctorMapper extends BaseMapper<Doctor> {
    /**
     * 查询一条医生信息
     * @author ZEM
     * @Time 2021/11/24
     * @Description 通过wrapper条件查询一条医生记录
     */
    ParamsDoctor selectOneDoctor(@Param(Constants.WRAPPER) Wrapper wrapper);
    IPage<List<ParamsDoctor>> selectDoctorList(Page page, @Param(Constants.WRAPPER) Wrapper wrapper);
}
